﻿using Newtonsoft.Json;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HuiLian.Common.HdlHttpModel
{
    /// <summary>
    /// 获取各点位的历史数据
    /// 1.数据查询的区间大于3天，接口会以开始时间做3天的数据返回
    /// 2.秒级数据查询，仅限单个传感器查
    /// </summary>
    public class HdlScadaSensorHistoryRequest
    {
        /// <summary>
        /// 开始时间
        /// </summary>
        public long begin { get; set; }

        /// <summary>
        /// 传感器编码集合
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public List<string> codes { get; set; }

        /// <summary>
        /// 结束时间
        /// </summary>
        public long end { get; set; }

        /// <summary>
        /// 设备编码 bm
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public List<string> equipment_bms { get; set; }

        /// <summary>
        /// 数据时间间隔 默认是分钟级别 3600 1小时 以此类推
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public long? interval { get; set; }

        /// <summary>
        /// 站点类型
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public List<string> station_types { get; set; }

        /// <summary>
        /// 指定返回的数据类型，默认分钟级；可选秒级(sec)，并且秒级时只支持单个传感器
        /// </summary>
        [JsonProperty(NullValueHandling = NullValueHandling.Ignore)]
        public string type { get; set; }
    }
}
